From: kaf24@firebug.cl.cam.ac.uk Date: Fri, 15 Sep 2006 10:17:26 +0000 (+0100) Subject: [XEN] Scheduler pings only CPUs in a VCPU's affinity mask to balance load. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15658^2~52^2~5 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=68043a01dc986addf3ed68fad515286a1d5179f8;p=xen.git [XEN] Scheduler pings only CPUs in a VCPU's affinity mask to balance load. Signed-off-by: Keir Fraser --- diff --git a/xen/common/sched_credit.c b/xen/common/sched_credit.c index 3465542083..5e02ead91f 100644 --- a/xen/common/sched_credit.c +++ b/xen/common/sched_credit.c @@ -290,6 +290,7 @@ __runq_tickle(unsigned int cpu, struct csched_vcpu *new) { CSCHED_STAT_CRANK(tickle_idlers_some); cpus_or(mask, mask, csched_priv.idlers); + cpus_and(mask, mask, new->vcpu->cpu_affinity); } } @@ -1001,6 +1002,7 @@ csched_load_balance(int cpu, struct csched_vcpu *snext) } else if ( is_idle_vcpu(per_cpu(schedule_data, peer_cpu).curr) ) { + CSCHED_STAT_CRANK(steal_peer_idle); speer = NULL; } else